package org.zjx.data.screen;

import org.zjx.command.entity.screen.*;
import org.zjx.command.enums.TeleportType;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class MoWangZhaiSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "魔王寨";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(119, 89);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("守门牛妖", new Point(28, 26));
        addNpc("守门牛妖", new Point(38, 21));
        addNpc("引路小妖", new Point(87, 72));
    }

    @Override
    protected void addRooms() {
        Room moWangJu = createRoom("魔王居", new Dimension(57, 38));
        addNpcToRoom(moWangJu, "牛魔王", new Point(24, 13));
        addNpcToRoom(moWangJu, "九头精怪", new Point(17, 15));
        rooms.add(moWangJu);
    }

    @Override
    protected void addTeleports() {
        // 场景传送点
        addSceneTeleport(new Point(12, 8), "大唐境外", new Point(58, 113), new Point(13, 4));
        addSceneTeleport(new Point(90, 70), "魔王居", new Point(16, 10), new Point(93, 73));

        // 房间入口传送点
        addRoomTeleport(new Point(90, 70), "魔王居", new Point(16, 10), new Point(93, 73));
    }

    public static void main(String[] args) {
        new MoWangZhaiSceneBuilder().execute("mowangzhai_scene.json", "魔王寨");
    }
}